class Rectangle:
    length = 0
    width = 0

    def __init__(self, length, width):
        self.length = length
        self.width = width

    def area(self):
        mianji = self.length * self.width
        return mianji


# 实例化矩形
rec1 = Rectangle(6, 5)
rec2 = Rectangle(7, 3)
print(rec1.length, rec1.width, rec1.area())
print(rec2.length, rec2.width, rec2.area())
